package com.example.shirospringboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.example.shirospringboot.requestBean.User;
import com.example.shirospringboot.service.SysuserService;

@Controller
public class SysUserController {
    @Autowired
    private SysuserService sysuserService;
    
    @PostMapping("/user")
    public ResponseEntity addUser(@RequestBody User user) {
        sysuserService.addUser(user);
        return ResponseEntity.ok().build();
    }
}
